home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 30
/
Amiga Format AFCD30 (Sep 1998, Issue 114).iso
/
-readerstuff-
/
jamie_seeney
/
hdinstallers
/
install_a-train
next >
Wrap
Text File
|
1998-06-17
|
4KB
|
204 lines
; installation script for A-Train by J.Seeney
; tell user that the installer will be creating a drawer for the game
(message
(cat "\nYour copy of A-Train will be installed in a new drawer named "
"\"A-Train Drawer\". You will be asked where on your hard drive "
"(or other storage device) you want this drawer created."
)
)
; ask user where to put the drawer
(set robolocate
(askdir
(prompt "Please indicate where you want the A-Train drawer "
"to be located.")
(help @askdir-help)
(default @default-dest)
)
)
; make a drawer
(set robopath (tackon robolocate "A-Train Drawer"))
(makedir robopath (infos))
(makedir (tackon robopath "Data") (infos))
(complete 10)
(set @default-dest robopath)
; copy A-Train & Data to the drawer
(message "\nThe game files will now be copied from floppy disk to the new drawer.")
(askdisk
(prompt "Please insert the disk labeled \"A-Train Disk 1\".")
(help @askdisk-help)
(dest "A-Train Disk 1")
)
(working "Copying program files.")
(copyfiles
(source "A-Train Disk 1:A-Train")
(dest robopath)
(infos)
)
(copyfiles
(source "A-Train Disk 1:A-Train HiRes")
(dest robopath)
(infos)
)
(complete 30)
(askdisk
(prompt "Please insert the disk labeled \"A-Train Disk 2\".")
(help @askdisk-help)
(dest "A-Train Disk 2")
)
(working "Copying data files.")
(copyfiles
(source "A-Train Disk 2:Data")
(dest (tackon robopath "Data"))
(all)
(infos)
)
(complete 90)
(tooltype
(dest (tackon robopath "Data"))
(noposition)
)
(complete 100)
; installation script for AT Constuction Set
; check things out by J.Seeney
(set def-dest @default-dest)
(set def-dest-maybe (tackon @default-dest "A-Train Drawer"))
(if (exists def-dest-maybe) (set def-dest def-dest-maybe))
; tell user that the game needs to installed where A-Train was
(set old-user @user-level)
(user 2)
(message
(cat "\nYour copy of AT Constuction Set needs to be installed in the same "
"drawer that A-Train was installed. You will be asked to locate the "
"A-Train Drawer so the installation can continue."
)
)
; ask user where to put the drawer
(set ok 0)
(while (not ok)
(
(set robopath
(askdir
(prompt "Please indicate where the A-Train drawer is located.")
(help @askdir-help)
(default def-dest)
)
)
(if (exists (tackon robopath "Data"))
(set ok 1)
(message "A-Train is not installed in that Drawer!")
)
)
)
(user old-user)
(complete 5)
(set @default-dest robopath)
; copy ATCS, Examples & new Data to the drawer
(message "\nThe game files will now be copied from floppy disk to the A-Train Drawer.")
(askdisk
(prompt "Please insert the disk labeled \"A-Train Construction Set Disk 1\".")
(help @askdisk-help)
(dest "ATCS Disk 1")
)
(working "Copying program files.")
(complete 10)
(copyfiles
(source "ATCS Disk 1:AT Construction Set")
(dest robopath)
(infos)
)
(complete 30)
(copyfiles
(source "ATCS Disk 1:AT Construction Set HiRes")
(dest robopath)
(infos)
)
(working "Installing Example Games.")
(complete 40)
(run
(cat "\"ATCS Disk 1:c/atcs_expand\" \"ATCS Disk 1:examples.res\" \""
(tackon robopath "Example") "\" h"
)
)
(complete 50)
(askdisk
(prompt "Please insert the disk labeled \"A-Train Construction Set Disk 2\".")
(help @askdisk-help)
(dest "ATCS Disk 2")
)
(working "Copying data files.")
(copyfiles
(source "ATCS Disk 2:Data")
(dest (tackon robopath "Data"))
(pattern "#?.snd")
)
(complete 80)
(copyfiles
(source "ATCS Disk 2:Data/atcs.res")
(dest (tackon robopath "Data"))
)
(complete 95)
(if (exists "ATCS Disk 2:Data/atcs.catalog")
(copyfiles
(source "ATCS Disk 2:Data/atcs.catalog")
(dest (tackon robopath "Data"))
)
)
(complete 100)